<%@page contentType="text/html" pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html lang="ch">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
        <title>注册页面</title>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/css/register_login.css"/>
        <link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css"/>
        <script src="${pageContext.request.contextPath}/js/jquery-3.4.1.min.js"></script>
        <script src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
        <script src="${pageContext.request.contextPath}/js/script.js" charset="UTF-8"></script>
    </head>
    <body>
        <div class="container">
            <div class="register_login bg-warning"> 
                <h1 class="text-info">注册页面</h1>
                <br>
                <form class="form-horizontal"  action="${pageContext.request.contextPath}/RegistServlet" method="post" enctype="multipart/form-data" >
                    <div class="form-group">
                        <label  class="col-sm-2 control-label">账号</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="Id" id="firstname" placeholder="请输入账号">
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-sm-2 control-label">用户名</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="uname" id="firstname" placeholder="请输入用户名">
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label class="col-sm-2 control-label">密码</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="upwd" id="lastname" placeholder="请输入密码">
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label class="col-sm-2 control-label">头像</label>
                        <div class="col-sm-10">
                            <input type="file" filename="" name="head">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button type="submit" class="btn btn-success btn-lg">注册</button>
                            <a href="${pageContext.request.contextPath}/page/login.jsp">返回</a>
                        </div>
                    </div>
                </form>
            </div>  
        </div>
    </body>
</html>
